#ifndef _BSP_H_
#define _BSP_H_

#include "stdio.h"
#include "string.h"
#include "stdarg.h"
#include "stdio.h"
#ifdef STM32F40_41xxx
#include "stm32f4_basic_func.h"
#endif

#define SYSTEM_DEFAULT_CLK_MHZ      168												    

#define RET_SUCCESS     0
#define RET_ERR         -1
#define RET_FAIL        -2
#define RET_WARN        -3

#define OUT             0
#define IN              1

#define LIMIT( x,min,max ) ( (x) < (min)  ? (min) : ( (x) > (max) ? (max) : (x) ) )

//////////////////////////////////////////////////////////////////////////
<<<<<<< HEAD
#include "../SYSTEM/stm32f4_basic_func.h"

#include "./hal/gpio/hal_gpio_define.h"
#include "./hal/i2c/hal_i2c.h"
// #include "./hal/serial/hal_serial.h"
=======
// #include "./hal/gpio/hal_gpio.h"
// #include "./hal/led/hal_led.h"
#include "./hal/serial_console/hal_serial_console.h"
>>>>>>> 532af2f7113d09515bde256c4f7fadf20adca4b0
// #include "./hal/spi/hal_spi.h"
// #include "./hal/uart/hal_uart.h"



// #include "./hdl/i2c/hdl_i2c.h"
#include "./hdl/mpu6050/hdl_mpu6050.h"
// #include "./hdl/oled/hdl_oled.h"
// #include "./hdl/serial_driver/hdl_serial_driver.h"
// #include "./hdl/camera_dcmi/hdl_camera_dcmi.h"
// #include "./hdl/camera_sccb/hdl_camera_sccb.h"
// #include "./hdl/camera/hdl_ov2640.h"

// #include "./hdl/pwm/hdl_pwm.h"
// #include "./hdl/spi/hdl_spi.h"
// #include "./hdl/nrf24l01/hdl_nrf24l01.h"

// #include "./hdl/RFID/hdl_rc522.h"

// #include "./hdl/lcd/hdl_lcd.h"
// #include "./hdl/w25qxx/hdl_w25qxx.h"
// #include "./hdl/sdio_sdcard/hdl_sdio_sdcard.h"
// #include "./hdl/uart/hdl_uart.h"
// #include "./hdl/uart/hdl_uart2.h"
// #include "./hdl/atk_uart_module/atk_uart_module.h"
// #include "./hdl/atk_esp_module/atk_esp_module.h"
// #include "./hdl/dma/hdl_dma.h"


#include "./hce/hce_serial_cmd.h"
// #include "./hce/hce_nrf24l01.h"


#include "./appl/appl_main_framework.h"

// #include "./Sys_ThirdParty/sys_thirdtparty.h"

void USR_NVIC_Config(IRQn_Type bIRQN,int bPrePriority,int bSubPriority);

#endif

